import request from '../axios/index';

/*
 * 描述：用户登录
 * 参数data: object  {username: '用户名', password: '密码'}
 */
export  function login(data) {
    return request({
        method: 'post',
        url: '/api/user/doLogin',
        data: data
    });
}
export function rotertable(){
    return request({
        method: 'post',
        url: '/api/manage/resource/getResource',
    });
}
export function getcode(){
    return request({
        method: 'post',
        url: '/api/user/verification',
    });
}
